import { REMOVE_USER, SET_USER } from '../constant';

export const setUser = (data) => ({ type: SET_USER, data });

export const removeUser = () => ({ type: REMOVE_USER });

export const asyncSetUser = (data) => (dispatch) => {
  setTimeout(() => {
    dispatch(setUser(data))
  })
}
